<script setup lang="ts">
// 用户问候与功能卡片组件
const username = "Irvin"
</script>

<template>
  <div class="user-greeting">
    <div class="greeting-text">
      <h3>你好，{{ username }}</h3>
      <p class="day-message">今天是新的一天开始行动了</p>
    </div>
    
    <div class="feature-cards">
      <div class="feature-card">
        <span class="card-text">入职优化</span>
      </div>
      <div class="feature-card">
        <span class="card-text">智能助手</span>
      </div>
      <div class="feature-card">
        <span class="card-text">项目管理</span>
      </div>
    </div>
    
    <div class="action-buttons">
      <button class="action-btn">通知</button>
      <button class="action-btn">创建</button>
    </div>
  </div>
</template>

<style scoped>
.user-greeting {
  flex: 1;
  background-color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.greeting-text h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.day-message {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.feature-cards {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.feature-card {
  background-color: #f8f9fa;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  cursor: pointer;
  transition: background-color 0.2s;
}

.feature-card:nth-child(1) {
  background-color: #f0f4ff;
}

.feature-card:nth-child(2) {
  background-color: #e6f7fe;
}

.feature-card:nth-child(3) {
  background-color: #ffebee;
}

.feature-card:hover {
  opacity: 0.9;
}

.card-text {
  font-size: 0.85rem;
  color: #333;
}

.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.action-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
}

.action-btn:hover {
  color: #333;
}
</style> 